package org.zhangsh.nio;

import org.zhangsh.socket.HostInfo;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;

/**
 * </p>
 *
 * @author zhangsh
 * @version 1.0.0
 * @since 2019-04-26
 */
public class NioEchoClient {

    public static void main(String[] args) throws IOException {

        SocketChannel client = SocketChannel.open();
        client.configureBlocking(false);
        client.bind(new InetSocketAddress(HostInfo.HOST_NAME, HostInfo.HOST_PORT));

        Selector selector = Selector.open();
//        client.register(selector, S)



    }
}
